package com.liveinstars.im.domain.manager;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.liveinstars.api.im.query.ReportQuery;
import com.liveinstars.im.domain.dao.model.Report;

/**
 * @author: zhouze
 * @date: 2020/3/3
 */
public interface ReportManager extends IService<Report> {

    /**
     * 添加举报记录
     * @param report
     */
    void add(Report report);

    /**
     * 分页查询举报信息接口
     * @param reportQuery
     * @return
     */
    Page<Report> pageByQuery(ReportQuery reportQuery);

    /**
     * 更新举报信息状态
     * @param id
     * @param status
     */
    void updateStatusById(Long id, Integer status);
}
